﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="usergroup.aspx.cs" Inherits="UI_usergroup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="/images/style.css" rel="Stylesheet" />
    <script language="javascript" type="text/javascript" src="/js/jiazai.js"></script>
    <script src="/js/introbox.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" class="tableBorder" border='1' cellspacing="0" style="border-collapse: collapse;"
        bgcolor="#ffffff" bordercolor="#cccccc">
        <tr align="center" valign="middle">
            <th height="22" colspan="88">
                用 户 分 组 管 理
            </th>
        </tr>
        <tr>
            <td>
                名称
            </td>
            <td>
                <asp:TextBox runat="server" ID="txbcontent"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button ID="btnok" CssClass="btn" runat="server" Text=" 确定添加 " OnClick="btnok_Click" />
            </td>
        </tr>
    </table>
    <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <asp:GridView ID="gvList" runat="server" AllowPaging="true" CellPadding="2" AutoGenerateColumns="False"
                    GridLines="Both" EmptyDataText="未找到文章"   CssClass="tableBorder"
                    Width="100%">
                    <Columns>
                        
                        <asp:BoundField DataField="id" HeaderText="ID">                          
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="名称">
                            <ItemStyle Width="100px" HorizontalAlign="left" />
                            <HeaderStyle Width="100px" HorizontalAlign="left" />
                            <ItemTemplate>
                                <%#Eval("groupname") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="power" HeaderText="系统权限">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="操作">
                            
                            <ItemTemplate>
                                <a href='?action=xiugai&id=<%#Eval("id") %>'>修改</a> <a href='del.aspx?T=usergroup&id=<%#Eval("id") %>'
                                    onclick="javascript:if (confirm('您真的确定要删除吗？\n\n请确认！')==true){return true}else{return false}">
                                    <%#(ChkRefered(Eval("id").ToString()))?"":"删除"%></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerSettings Visible="False" />
                </asp:GridView>
            </td>
        </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" class="PageTableCss" width="100%">
        <tr>
            <td class="PageLableCss" style="height: 41px">
                <asp:Label ID="Label5" runat="server" Text="总共【"></asp:Label>
                <asp:Label ID="LblRecordCount" runat="server" ForeColor="blue"></asp:Label>
                <asp:Label ID="Label6" runat="server" Text="】条"></asp:Label>
                <asp:Label ID="Label3" runat="server" Text="共【"></asp:Label>
                <asp:Label ID="LblPageCount" runat="server"></asp:Label>
                <asp:Label ID="Label4" runat="server" Text="】页"></asp:Label>
                <asp:Label ID="Label1" runat="server" Text="第【"></asp:Label>
                <asp:Label ID="LblCurrentIndex" runat="server" ForeColor="red"></asp:Label>
                <asp:Label ID="Label2" runat="server" Text="】页"></asp:Label>
            </td>
            <td class="PageLinkButtonCss" style="height: 41px">
                <asp:LinkButton CssClass="btn" ID="btnFirst" runat="server" CommandArgument="first"
                    OnClick="PagerButtonClick">首 页</asp:LinkButton>
                <asp:LinkButton CssClass="btn" ID="btnPrev" runat="server" CommandArgument="prev"
                    OnClick="PagerButtonClick">上一页</asp:LinkButton>
                <asp:LinkButton CssClass="btn" ID="btnNext" runat="server" CommandArgument="next"
                    OnClick="PagerButtonClick">下一页</asp:LinkButton>
                <asp:LinkButton CssClass="btn" ID="btnLast" runat="server" CommandArgument="last"
                    OnClick="PagerButtonClick">尾 页</asp:LinkButton>
            </td>
        </tr>
    </table>
    </form>
 </body>
</html>
<script language='javascript' type='text/javascript' src='/JS/tablecolor.js'></script>
<script language='javascript'><!--
    TableColor('gvList', '#F1F8FE', '#FFFFFF', '#F8DC87', '#BCE774');
--></script>
